namespace Order.Api.Types;

[ExtendObjectType("Query")]
public class OrderResolver
{
    public Order GetTopOrder() => new Order("1", 1, 1);

    public Order GetOrder() => new Order("2", 2, 2);

    public IEnumerable<Order> GetOrders()
    {
        return new List<Order>()
        {
            new Order("1",1,1),
            new Order("2",2,2)
        };
    }
}

public record Order(string Name, int Price, int Weight);
